function showBlacklistVehicleSearch(){
	window.location.href="showBlacklistVehicleSearch.do";
}

function ajaxFindBlacklistVehicleSearchList(currentPage,pageSize) {
	$.ajax({
		type:"post",
		url: "ajaxBlacklistVehicleSearchList.do",
		data:{
			currentPage:currentPage,
			pageSize:pageSize,
		},
		success:function(msg){
			$("#listBlacklistVehicleBox").html(msg);
		}
	});
}

function ajaxDeleteBlacklistVehicleById(id) {
	var blacklistVehicleIds="";
	var sltIA = $("#listBlacklistVehicleList tbody input:checked").length;
	if(id==null){
		$("#listBlacklistVehicleList tbody input:checked").each(function(){ 
			blacklistVehicleIds += $(this).val()+";";
		});
		if (blacklistVehicleIds == ""){
			showMessageDialog("提示","请选择一行或多行",null,dialogType.info);
			return;
		}else{
			blacklistVehicleIds=blacklistVehicleIds.substring(0, blacklistVehicleIds.length-1);
		}
	}else{
		blacklistVehicleIds=id;
		sltIA = 1;
	}
	if (blacklistVehicleIds!=null) {
		showMessageDialog("删除违法行为信息","确定要删除所选“"+sltIA+"”条违法行为信息记录吗？",
				function () {
			$.ajax({					
				type:"post",
				url:"ajaxDeleteBlacklistVehicleByIds.do",
				data:{blacklistVehicleIds:blacklistVehicleIds},
				success:function(msg){
					ajaxFindBlacklistVehicleSearchList();
					showMessageDialog("提示","告知规则删除成功",null,dialogType.info);
				}
			});}
		,dialogType.warning);
	} 
}
